package org.zjx.app.strategy.impl;

import org.zjx.app.action.gather.GatherPropAction;
import org.zjx.window.action.IAction;
import org.zjx.window.strategy.IStrategy;
import org.zjx.window.window.IWindow;
import org.zjx.window.window.impl.GameWindow;

import java.util.Collections;

public class TestStrategy implements IStrategy {

    @Override
    public IAction analyze(IWindow window) {
//        return new DialogueAction(window, Collections.singletonList("是的，我要去"));
//        return new GatherRoleAction(window);
//        return new GatherTaskBoxAction(window);
        return new GatherPropAction(window);
    }

    @Override
    public String getName() {
        return "测试";
    }

    @Override
    public int getPriority() {
        return 0;
    }

    @Override
    public boolean isApplicable(IWindow window) {
        return window instanceof GameWindow;
    }
}
